package com.wealth.order.enums;

/**
 * 支付类型
 * @author chan
 *
 */
public enum PaymodeEnum {
	
	MONEY(1,"金钱"),SCORE(2,"积分");
	
	private int value;
	private String comment;
	private PaymodeEnum(int value,String comment){
		this.value = value;
		this.comment =comment;
	}
	
	public int getValue(){
		return value;
		
	}
	public String getComment(){
		return comment;
	}
	public static PaymodeEnum get(int value){
		for (PaymodeEnum o:PaymodeEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
	
}
